.class public Lcom/xingbook/ui/b/o;
.super Lcom/xingbook/ui/b/a;

# interfaces
.implements Lcom/xingbook/d/e;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "ViewConstructor"
    }
.end annotation


# static fields
.field private static n:Lcom/xingbook/ui/overclass/SeekBarControlView;


# instance fields
.field private o:Lcom/xingbook/ui/a/a;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/xingbook/ui/b/a;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    return-void
.end method

.method private a(Lcom/xingbook/ui/a/a;)I
    .locals 8

    const/4 v7, 0x2

    const/4 v2, 0x0

    if-eqz p1, :cond_3

    invoke-virtual {p1}, Lcom/xingbook/ui/a/a;->getmBaseItem()Lcn/a/a/b/b;

    move-result-object v0

    check-cast v0, Lcn/a/a/b/a;

    invoke-virtual {v0}, Lcn/a/a/b/a;->g()[Lcn/a/a/d/c;

    move-result-object v3

    array-length v4, v3

    move v0, v2

    :goto_0
    if-lt v0, v4, :cond_0

    move v0, v2

    :goto_1
    return v0

    :cond_0
    aget-object v1, v3, v0

    invoke-virtual {v1}, Lcn/a/a/d/c;->c()I

    move-result v5

    if-ne v5, v7, :cond_2

    invoke-virtual {v1}, Lcn/a/a/d/c;->a()I

    move-result v5

    const/4 v6, 0x7

    if-ne v5, v6, :cond_2

    invoke-virtual {v1}, Lcn/a/a/d/c;->b()I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/b/o;->c(I)Lcom/xingbook/ui/a/c;

    move-result-object v1

    if-nez v1, :cond_1

    move v0, v2

    goto :goto_1

    :cond_1
    invoke-virtual {v1}, Lcom/xingbook/ui/a/c;->getItemType()I

    move-result v5

    if-ne v5, v7, :cond_2

    move-object v0, v1

    check-cast v0, Lcom/xingbook/ui/a/a;

    invoke-virtual {v0}, Lcom/xingbook/ui/a/a;->getDuration()I

    move-result v0

    check-cast v1, Lcom/xingbook/ui/a/a;

    invoke-direct {p0, v1}, Lcom/xingbook/ui/b/o;->a(Lcom/xingbook/ui/a/a;)I

    move-result v1

    add-int/2addr v0, v1

    goto :goto_1

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    invoke-virtual {v0}, Lcom/xingbook/ui/a/a;->getDuration()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    invoke-direct {p0, v1}, Lcom/xingbook/ui/b/o;->a(Lcom/xingbook/ui/a/a;)I

    move-result v1

    add-int/2addr v0, v1

    goto :goto_1

    :cond_4
    move v0, v2

    goto :goto_1
.end method


# virtual methods
.method public a()V
    .locals 3

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/overclass/SeekBarControlView;->a(ZZ)V

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/SeekBarControlView;->a()V

    :cond_0
    return-void
.end method

.method public a(Lcn/a/a/c/a;)V
    .locals 4

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/ui/b/a;->a(Lcn/a/a/c/a;)V

    iget-object v0, p0, Lcom/xingbook/ui/b/o;->k:Lcn/a/a/c/a;

    invoke-virtual {v0}, Lcn/a/a/c/a;->m()I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/b/o;->c(I)Lcom/xingbook/ui/a/c;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/a/a;

    iput-object v0, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    iget-object v0, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    iget-object v1, p0, Lcom/xingbook/ui/b/o;->e:Lcom/xingbook/d/d;

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/a/a;->a(Lcom/xingbook/d/d;)V

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/b/o;->a:Landroid/content/Context;

    const v1, 0x7f030008

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ui/overclass/SeekBarControlView;

    sput-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    iget-object v1, p0, Lcom/xingbook/ui/b/o;->g:Lcom/xingbook/c/e;

    invoke-virtual {v1}, Lcom/xingbook/c/e;->c()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/b/o;->g:Lcom/xingbook/c/e;

    invoke-virtual {v2}, Lcom/xingbook/c/e;->d()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/overclass/SeekBarControlView;->measure(II)V

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    iget-object v1, p0, Lcom/xingbook/ui/b/o;->g:Lcom/xingbook/c/e;

    invoke-virtual {v1}, Lcom/xingbook/c/e;->c()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/b/o;->g:Lcom/xingbook/c/e;

    invoke-virtual {v2}, Lcom/xingbook/c/e;->d()I

    move-result v2

    invoke-virtual {v0, v3, v3, v1, v2}, Lcom/xingbook/ui/overclass/SeekBarControlView;->layout(IIII)V

    :cond_0
    return-void
.end method

.method public b()V
    .locals 1

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/SeekBarControlView;->b()V

    :cond_0
    return-void
.end method

.method public f()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/ui/b/a;->f()V

    :try_start_0
    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/b/o;->addView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public g()V
    .locals 3

    invoke-super {p0}, Lcom/xingbook/ui/b/a;->g()V

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    iget-object v1, p0, Lcom/xingbook/ui/b/o;->k:Lcn/a/a/c/a;

    invoke-virtual {v1}, Lcn/a/a/c/a;->b()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/b/o;->o:Lcom/xingbook/ui/a/a;

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/overclass/SeekBarControlView;->a(Ljava/lang/String;Lcom/xingbook/ui/a/a;)V

    return-void
.end method

.method public getFgAudioDuration()I
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/ui/b/o;->a(Lcom/xingbook/ui/a/a;)I

    move-result v0

    return v0
.end method

.method public h()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/ui/b/a;->h()V

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/SeekBarControlView;->b()V

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/b/o;->removeView(Landroid/view/View;)V

    return-void
.end method

.method public k()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public m()V
    .locals 1

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/xingbook/ui/b/o;->n:Lcom/xingbook/ui/overclass/SeekBarControlView;

    invoke-virtual {v0}, Lcom/xingbook/ui/overclass/SeekBarControlView;->c()V

    :cond_0
    return-void
.end method
